package com.design.command.remotecontrol2;

// 电灯类
class Light {
    void turnOn() {
        System.out.println("Light is turned on");
    }

    void turnOff() {
        System.out.println("Light is turned off");
    }
}

// 风扇类
class Fan {
    void turnOn() {
        System.out.println("Fan is turned on");
    }

    void turnOff() {
        System.out.println("Fan is turned off");
    }
}
